package cn.edu.service.Impl;

import cn.edu.dao.StudentDao;
import cn.edu.domain.Student;
import cn.edu.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Davey chan
 */
@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentDao studentDao;

    @Override
    public void update(Student student) {
    }

    @Override
    public List<Student> findAll() {
       return studentDao.findAll();
    }

    @Override
    public Student findById(Integer id) {
        return studentDao.findById(id);
    }
}
